//
//  RZQFindMoreCollectionCell.m
//  OurMoon
//
//  Created by dllo on 15/11/3.
//  Copyright © 2015年 sc. All rights reserved.
//

#import "RZQFindMoreCollectionCell.h"
#import "FitHeader.h"
#import <UIImageView+WebCache.h>
#import "NightHeader.h"
@implementation RZQFindMoreCollectionCell

- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        _imageView = [[UIImageView alloc]init];
        [self.contentView addSubview:_imageView];
           _imageView.backgroundColor = [UIColor clearColor];
  
    }
    return self;
}
-(void)layoutSubviews
{
    [super layoutSubviews];
    
   // _label.text = _moreData.title;
    
    _imageView.layer.borderWidth = 2.0;
    _imageView.layer.cornerRadius = 20;
    _imageView.clipsToBounds = YES;
   

    
    _label.textAlignment = 1;
 
}
-(void)setNum:(NSInteger)num
{
    if (_num != num) {
        _num = num;
    }
    NSArray *array = @[@"图标-0",@"图标-1", @"图标-2", @"图标-3", @"图标-4", @"图标-5", @"图标-6", @"图标-7", @"图标-8", @"图标-9", @"图标-10",@"图标-11",];
    
    _imageView.frame = CGRectMake(0, 0, self.contentView.frame.size.width, self.contentView.frame.size.height);
    _imageView.image = [UIImage imageNamed:[NSString stringWithFormat:@"%@", array[_num]]];
 

}
/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

@end
